package com.draemon.haixiawenti.repository;

import com.yangzcp.userpojo.B_fapai;
import com.yangzcp.userpojo.B_jinqiu;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * <p></p>
 *
 * @author  yangz
 * @date    2016/11/13
 * @version latest
 */
public interface B_fapaiRepository extends JpaRepository<B_fapai, Integer>{
    @Query("from B_fapai where ref_saicheng.id=?1  and ref_qiudui.id=?2")
    public List<B_fapai> findBysaicheng(Integer saicheng_id, Integer quidui_id);
}
